package com.wxb.service.impl;

import com.wxb.domain.MallProductEntity;
import com.wxb.mapper.MallProductMapper;
import com.wxb.service.IMallProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-28 14:42
 * @Version 1.0
 * @Description
 * @ClassName MallProductServiceImpl
 **/
@Service
public class MallProductServiceImpl implements IMallProductService {
    @Autowired
    private MallProductMapper productDao;

    public MallProductEntity queryObject(Integer id) {
        return productDao.queryObject(id);
    }


    public List<MallProductEntity> queryList(Map<String, Object> map) {
        return productDao.queryList(map);
    }


    public int queryTotal(Map<String, Object> map) {
        return productDao.queryTotal(map);
    }


    public void save(MallProductEntity goods) {
        productDao.save(goods);
    }


    public void update(MallProductEntity goods) {
        productDao.update(goods);
    }


    public void delete(Integer id) {
        productDao.delete(id);
    }


    public void deleteBatch(Integer[] ids) {
        productDao.deleteBatch(ids);
    }
}
